package com.asset.crm.shared;

import java.io.Serializable;

public class ContactDTO implements Serializable,Comparable<ContactDTO>{
	private static final long serialVersionUID = -4898434316593733869L;
	
	private String id;
	
	private String creator;
	
	private String parentId;
	
	private String 	fName;
	
	private String lName;
	
	private String title;
	
	private String phone;
	
	private String mobile;
	
	private String email;
	
	private String dateCreated;
	
	private String dateModified;
	
	private String parentName;
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getfName() {
		return fName;
	}

	public void setfName(String fName) {
		this.fName = fName;
	}

	public String getlName() {
		return lName;
	}

	public void setlName(String lName) {
		this.lName = lName;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getDateCreated() {
		return dateCreated;
	}

	public void setDateCreated(String dateCreated) {
		this.dateCreated = dateCreated;
	}

	public String getDateModified() {
		return dateModified;
	}

	public void setDateModified(String dateModified) {
		this.dateModified = dateModified;
	}

	public String getParentName() {
		return parentName;
	}

	public void setParentName(String parentName) {
		this.parentName = parentName;
	}

	/**
	 * 
	 */
	

	@Override
	public int compareTo(ContactDTO o) {
		return Integer.parseInt(this.id)-Integer.parseInt(o.getId());
	}

}
